package icu.javayanglei.file.service.impl

import icu.javayanglei.file.service.IndexService
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import java.io.File

@SpringBootTest
class IndexServiceImplTest @Autowired constructor(private val service: IndexService) {
    val file = File("/Users/yang/Downloads/file/test.dmg")

    @Test
    fun `split the file`() {
//        service.getSplitFile(file, 40 * 1024 * 1024);
    }

    @Test
    fun `cut file`() {
//        val cutFile = service.cutFile(file, 40);
//        println(cutFile)
    }

}
